Post

Replies

Boosts

Views

Activity

Reply to How to Fix Cracking and Popping Sound ?
Same issue here. Really frustrated. Using Xcode and listening to audio caused no issues on my mid-2015 MacBook Pro that I just sold last week. I upgraded to the 16in MacBook Pro and now I cannot watch coding tutorials while using Xcode or listen to music either. And it only happens when you start to build and run an app in the simulator or the canvas in SwiftUI. They really need to fix this.
Topic: App & System Services SubTopic: Core OS Tags:
Nov ’20
Reply to iPadOS 14 sidebar in dark mode is indistinguishable from content
As of iPadOS 15, this issue has still not been resolved by Apple. Good news though! The developer community has made a swift package called SwiftUI-Introspect.. After adding the package to your project (which they say is built to use in Production apps, not just for development purposes), import Introspect in your SwiftUI view and at the end of your sidebar list, add this modifier: List {                 NavigationLink(destination: DemoView()) {                     Text("Demo")                 }             }             .listStyle(.sidebar)             .navigationTitle("Demo")             .introspectTableView { inspect in                 inspect.backgroundColor = .secondarySystemBackground             } Unlike other methods, this method only applies the .secondarySystemBackground to the sidebar and not the Main or Secondary Views!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’22
Reply to iOS 18 App Intents while supporting iOS 17
Hi @wingover, Thanks for the suggestion! Can you elaborate more on what my AppShortcutsBuilder should look like after I up the target to 17.4? For Example, the following code crashes on iOS 17.5 with a 17.5 or 17.4 target: struct SnippetsShortcuts: AppShortcutsProvider { @AppShortcutsBuilder static var appShortcuts: [AppShortcut] { AppShortcut(intent: CreateAppIntent(), phrases: [ "Create a \(\.$selection) in \(.applicationName) Studio", "Create a \(\.$selection) in \(.applicationName)", "Create a \(\.$selection)" ], shortTitle: "Create", systemImageName: "plus") if #available(iOS 18, *) { AppShortcut(intent: SearchAppIntent(), phrases: [ "Search \(.applicationName) Studio", "Search \(.applicationName)" ], shortTitle: "Search", systemImageName: "magnifyingglass") } } let shortcutTileColor: ShortcutTileColor = .blue } Here is the crash message: dyld[23602]: Symbol not found: _$s10AppIntents15AssistantSchemaV06IntentD0VAC0E0AAWP Referenced from: /Users/jonathan/Library/Developer/CoreSimulator/Devices/2E9641A0-00E1-463A-8B24-F488669B1229/data/Containers/Bundle/Application/7E2B4104-BF7F-43A2-9EEA-AD24EC95E096/Snippets Studio.app/Snippets Studio.debug.dylib Expected in: <88E18E38-24EC-364E-94A1-E7922AD247AF> /Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/AppIntents.framework/AppIntents
Topic: Machine Learning & AI SubTopic: General Tags:
Jul ’24
Reply to iOS 18 @AssistantIntent's marked with @available crashing on older OS's
@Engineer Good morning! I am sorry for the delay in my response. I am just now seeing your message this morning, as I never got a notification of a response on this post. I have tested this fix using 17.4, 17.5, 18.0, and 18.1. While every device can now launch the app without crashes (yay! 🎉), unfortunately, as soon as you add an iOS 18 AppIntent using the AssistantIntent to an AppShortcutsBuilder, iOS 17 can no longer launch the iOS 17 compatible AppShortcut. Additionally, there is a regression in iOS 18.1 where the AssistantIntent shortcut no longer prompts you to enter a search term before launching the app. But on iOS 18, this works just fine. I have updated the feedback with this same information as well as a video to show the issue.
Oct ’24
Reply to Navigation split view selection property is set to nil when selecting list item
I have taken the liberty of tweaking your code a bit which also fixes your issue of not being able to delete a page from sidebar list which shows all your pages in the wiki. Wiki and PageView stay the same. PageList struct PageList: View { @Binding var wiki: Wiki @Binding var selection: Page? var body: some View { List(selection: $selection) { Section { ForEach($wiki.pages, id: \.id) { $page in NavigationLink(value: page) { TextField("", text: $page.title) } .contextMenu { Button("Delete Page") { wiki.pages.removeAll(where: { $0.id == page.id }) } } } } header: { Text("Pages") } } .toolbar { ToolbarItemGroup (placement: .navigation) { Spacer() Button { wiki.pages.append(.init(title: "New Page", text: "")) } label: { Label("Add", systemImage: "plus") } } } } } List stores the selection. ForEach is added with stores the $wiki.pages array. NavigationLink is updated to use the new .navigationDestination() modifier in ContentView. Added a contextMenu() to the NavigationLink. Added an Add Button in the toolbar. ContentView struct ContentView: View { @Binding var wiki: Wiki @State private var selection: Page? = nil var body: some View { NavigationSplitView { PageList(wiki: $wiki, selection: $selection) .navigationSplitViewColumnWidth(ideal: 192) .navigationDestination(item: $selection) { selection in PageView(page: selection) } } detail: { Text("Select a page to view its contents.") } .onAppear { selection = wiki.pages.first } } } Detail View only shows the Text because the .navigationDestination() now handles the PageView. If you have persistence, then the onAppear will work but otherwise it doesn't do anything as of right now since the array will be wiped each time you relaunch the app. I would also suggest changing @Binding var wiki: wiki to an @State variable if you do not want your entire app across all open windows to share the same state. For example: I open a new window to edit a different Wiki. However since the state is at the App level, every WindowGroup will show the exact same Wiki. LMK if this resolves your issue.
Topic: UI Frameworks SubTopic: SwiftUI
Feb ’25